# urls.py (in your project directory)
from django.contrib import admin
from django.urls import include, path
from django.http import JsonResponse

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', include('Medicinal.urls')),  # Replace 'your_app_name' with the actual name of your app
    path('', lambda request: JsonResponse({'code': 200, 'message': '欢迎访问药材后台管理系统'}), name='home'),  # 添加默认根路径视图
]